/*
 * Project 1 phase 1
 * Efim Todorasco and Liviu Patrasco  
 */
import javax.media.opengl.GL;
import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;

public class Triangle2 extends SceneGraphNode {

	public Triangle2() {
		this(true);
	}
	
	public Triangle2(boolean pickable) {
		super(pickable);
	}
	
	public void renderGeometry(GLAutoDrawable drawable) {
		GL2 gl = drawable.getGL().getGL2();
		gl.glBegin(GL.GL_TRIANGLES);
		gl.glColor3f(1, .8f, .7f);
		gl.glVertex2f(-.5f, -.5f);
		gl.glColor3f(1, .7f, .7f);
		gl.glVertex2f(0, .5f);
		gl.glColor3f(1, .6f, 0);
		gl.glVertex2f(.5f, -.5f);
		gl.glEnd();
	}
}
